<script setup>
import { loadSlim } from "tsparticles-slim";
const particlesInit = async engine => {
  //await loadFull(engine);
  await loadSlim(engine);
};

const tsparticlesOption = {
  background: {
    color: {
      value: '#e9f0ff'
    }
  },
  fpsLimit: 120,
  interactivity: {
    events: {
      onClick: {
        enable: false,
        mode: 'push'
      },
      onHover: {
        enable: false,
        mode: 'repulse'
      },
      resize: true
    },
    modes: {
      bubble: {
        distance: 400,
        duration: 2,
        opacity: 0.8,
        size: 40
      },
      push: {
        quantity: 4
      },
      repulse: {
        distance: 200,
        duration: 0.4
      }
    }
  },
  particles: {
    color: {
      value: '#3252FF'
    },
    links: {
      color: '#59DBFF',
      distance: 150,
      enable: true,
      opacity: 0.5,
      width: 1
    },
    collisions: {
      enable: true
    },
    move: {
      direction: 'none',
      enable: true,
      outMode: 'bounce',
      random: false,
      speed: 1,
      straight: false
    },
    number: {
      density: {
        enable: true,
        area: 800
      },
      value: 80
    },
    opacity: {
      value: 0.5
    },
    shape: {
      type: 'circle'
    },
    size: {
      random: true,
      value: 5
    }
  },
  detectRetina: true
}
</script>

<template>
  <div class="particles-background">
    <vue-particles
        id="tsparticles"
        :particlesInit="particlesInit"
        :options="tsparticlesOption"
    />
  </div>
</template>

<style scoped>

</style>